<?php
    $modifiedSoftware = ns_dao_software::SoftwareByID($_GET['id']);
    $categoryList = ns_dao_software::GetCategoryList();
    $userList = ns_dao_user::GetUsersList();
?>
<div id="topMenu">
<!--Corner/Side Divs-->
<div class="topMenu-Top">
<div class="topMenu-Bot">
<div class="topMenu-Left">
<div class="topMenu-Right">
<div class="topMenu-BotL">
<div class="topMenu-BotR">
<div class="topMenu-TopL">
<div class="topMenu-TopR">
<!--Corner/Side Divs-->

<table width="100%" border="0" cellpadding="1" cellspacing="1" align="center">
<tr>
    <td class="highlightCell" align="center"><a href="manage_content.php?id=<?php echo $_GET['id'] ?>&view=manageDescr"><strong>Software Description</strong></a></td>
    <td class="highlightCell" align="center"><a href="manage_content.php?id=<?php echo $_GET['id'] ?>&view=manageIcon"><strong>Software Icon</strong></a></td>
    <td class="highlightCell" align="center"><a href="manage_content.php?id=<?php echo $_GET['id'] ?>&view=manageVersion"><strong>Software File Management</strong></a></td>
</tr>
</table>

<!--Corner/Side Divs-->
</div></div></div></div></div></div></div></div>
<!--Corner/Side Divs-->
</div>
</div> <!-- End of topSection -->
    
<form name="uploadAvatar" action="manage_content.php" method="POST" enctype="multipart/form-data">
    <input type="hidden" name="softwareID" id="softwareID" value="<?php echo $_GET['id'] ?>" />
<h4 style="margin:0">Software Icon</h4>
<table width="100%" border="0" cellspacing="1" cellpadding="1">
    <tr>
        <td><font size="-1">Current Icon:</font></td>
        <td><img src="<?php echo "../../content/softwareAvatar/" . $modifiedSoftware->AvatarImage(); ?> " height='80px' width='80px' /></td>
    </tr>
    <tr>
        <td nowrap="nowrap" valign="top" width="10%">
            <font size="-1"><label for="avatarFile">Change Icon:</label></font>
        </td>
        <td>
            <input type="file" name="avatarFile" id="avatarFile" />
        </td>
    </tr>
</table>
<table>
    <tr>
        <td colspan="1">&nbsp;</td>
        <td style="" align="left" nowrap="nowrap">
            <input type="submit" name="uploadAvatar" id="uploadAvatar" value="Update Avatar" style="font-weight: bold;" />
        </td>
    </tr>
</table>
<br /><br />